<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>我的备单</title>
    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/icons-extra.css"/>
    <link rel="stylesheet" href="../../../css/wx/animate.min.css"/>
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <link rel="stylesheet" href="../../../css/wx/wx-iconfont.css"/>

    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/wdbj/wdbj-play"]
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>

    <style>
        .mui-content {
            padding: 0;
        }

        p {
            margin-bottom: 0;
        }

        .returnCont {
            top: 10%;
            left: 5%;
            right: 5%;
        }

        .mui-scroll-wrapper .mui-table-view-cell {
            padding: 0
        }

        .mui-scroll-wrapper .mui-table-view {
            background: none;
        }

        .mui-scroll-wrapper .mui-table-view:before, .mui-scroll-wrapper .mui-table-view:after {
            height: 0;
        }

        .footBtn .mui-checkbox {
            background: #fff;
            line-height: 50px;
        }

        .footBtn .mui-checkbox input {
            top: 15px;
            left: 15px !important;
        }

        .footBtn .mui-checkbox label {
            padding-left: 44px;
        }

        .mui-scroll-wrapper .mui-card-header .mui-checkbox.mui-left label {
            padding-left: 22px;
            font-size: 13px;
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-card {
            margin: 10px 10px 0 10px;
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-row .mui-col-xs-10 {
            padding-left: 15px;
            position: relative;
        }

        .mui-table-view-cell:after {
            height: 0
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-row .mui-col-xs-10 .number {
            bottom: 0;
        }
    </style>
</head>

<body>
<div class="mui-content">
    <!--列表-->
    <div id="pullRefresh0" class="mui-scroll-wrapper">
        <div class="mui-scroll">
            <ul class="mui-table-view" id="playInfo">
                <li v-for="(item,index) in model" class="mui-table-view-cell">
                    <div class="mui-card">
                        <div class="mui-card-header">
                            <div class=" mui-left" style="flex: 1 1 0%;">
                                <label>物料编号:{{item.MMRS004}}</label>
                            </div>
                            <a href="javascript:;" @tap="edit(index)"><i class="iconfont icon icon-17"></i></a>
                        </div>
                        <div class="mui-card-content">
                            <div class="mui-card-content-inner">
                                <div class="mui-row">
                                    <div class="mui-col-xs-2">
                                        <div class="goodsImg"><img :src="item.GWAM015 | goodsImgsUtils"/></div>
                                    </div>
                                    <div class="mui-col-xs-10">
                                        <p><span>物料名称：</span>{{item.GWAML003}}</p>
                                        <p><span>批号：</span>{{item.MMRS005}}</p>
                                        <p><span>单位：</span>{{item.MMRS006|goodsUnits}}</p>
                                        <div class="number" >
                                            <div class="mui-numbox" data-numbox-step="1"
                                                 data-numbox-min="1" :data-numbox-max="item.MMRS008">
                                                <button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
                                                <input class="mui-input-numbox" type="number" :value="item.MMRT006">
                                                <button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="mui-col-xs-12" style="margin-top: 6px;">
                                        <p><span>收件人：</span>{{item.MMRT009}}</p>
                                        <p><span>电话：</span>{{item.MMRT010}}</p>
                                        <p><span>需要时间：</span>{{item.MMRT007}}</p>
                                        <p><span>配送地址：</span>{{item.MMRT011}}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>

</div>
<div class="footBtn flexl">
    <button type="button" class="puliColor_bg edit" id="sq_sure" @tap="sure" style="width: 100%;">确定</button>
</div>

<!--弹出层2   开窗-->
<div class="returnCont aplyCopy modal2" style="display: none;z-index: 1000" id="option-modal">
    <div class="header">
        <p class="puliColor_font" style="font-size: 15px;">选择客户和服务单号</p>
    </div>
    <div class="main wf-piis-info">
        <option-listitem :model="items"></option-listitem>
    </div>
</div>

<!--弹出层1  输入信息-->
<div class="returnCont aplyCopy modal1" style="display: none;" id="apply">
    <div class="header">
        <p class="puliColor_font" style="font-size: 15px;">备件申请</p>
    </div>
    <div class="main">
        <div class="form">
            <form class="mui-input-group">
                <!--<div class="mui-input-row">-->
                    <!--<label>客户：</label>-->
                    <!--<input  v-model="MMRT013" @tap.stop="option" type="button" class="mui-input-clear">-->
                <!--</div>-->
                <!--<div class="mui-input-row">-->
                    <!--<label>服务单号：</label>-->
                    <!--<input  v-model="MMRT012" @tap.stop="option" type="button" class="mui-input-clear">-->
                <!--</div>-->

                <div class="mui-input-row">
                    <label>需求日期：</label>
                    <input v-model="MMRT007" type="date" class="mui-input-clear">
                </div>
                <div class="mui-input-row">
                    <label>收件人：</label>
                    <input v-model="MMRT009" type="text" class="mui-input-clear" placeholder="请输入收件人">
                </div>
                <div class="mui-input-row">
                    <label>电话：</label>
                    <input v-model="MMRT010" type="text" class="mui-input-clear" placeholder="请输入电话">
                </div>
                <div class="mui-input-row">
                    <label>配送地址：</label>
                    <input v-model="MMRT011" type="text" class="mui-input-clear" placeholder="请输入配送地址">
                </div>
            </form>
        </div>
    </div>
    <div class="foot">
        <a id="bjsq-ok" class="puliColor_font conBtn" @tap="submit">提交</a>
        <a id="bjsq-cancel" @tap="cancel">取消</a>
    </div>
</div>

<!--<script id="optionitem-template" type="text/x-template">-->
    <!--<ul class="mui-table-view" style="margin: 0;">-->
        <!--<li class="mui-table-view-cell">-->
            <!--<div class="mui-row">-->
                <!--<div v-for="v in model" @tap.stop="select(v)"  class="mui-col-sm-12 mui-col-xs-12">-->
                    <!--<div class="flexTogter">-->
                        <!--<p>客户名称:</p>-->
                        <!--<p style="padding-left: 10px;">-->
                            <!--{{v.gwakl004}}-->
                        <!--</p>-->
                    <!--</div>-->
                    <!--<div class="flexTogter">-->
                        <!--<p>维修单号:</p>-->
                        <!--<p style="padding-left: 10px;">-->
                            <!--{{v.mmrddocno}}-->
                        <!--</p>-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
        <!--</li>-->
    <!--</ul>-->
<!--</script>-->

</body>
</html>